package com.example.network_sdk

import com.zyj.retrofit.adapter.FlowCallAdapterFactory
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class NoneHttpRetrofitImpl : BaseHttpRetrofitImpl(){
    override fun readTime(): Long {
        return 60
    }

    override fun connectTime(): Long {
        return 60
    }

    override fun writeTime(): Long {
        return 60
    }

    override fun createRetrofit(): Retrofit {
        var builder = Retrofit.Builder()
            .addConverterFactory(GsonConverterFactory.create())
            .addCallAdapterFactory(FlowCallAdapterFactory.create())
            .baseUrl("http://118.195.161.134:8077/")
            .client(createOkHttpBuilder().build())
        return builder.build()
    }
}